package com.groupbuying.orderproducer.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import com.groupbuying.orderproducer.dao.CommodityOrderItemDao;
import com.groupbuying.orderproducer.domain.CommodityOrderItemDO;
import com.groupbuying.orderproducer.service.CommodityOrderItemService;



@Service
public class CommodityOrderItemServiceImpl implements CommodityOrderItemService {
	@Autowired
	private CommodityOrderItemDao commodityOrderItemDao;
	
	@Override
	public CommodityOrderItemDO get(String id){
		return commodityOrderItemDao.get(id);
	}
	
	@Override
	public List<CommodityOrderItemDO> list(Map<String, Object> map){
		return commodityOrderItemDao.list(map);
	}
	
	@Override
	public int count(Map<String, Object> map){
		return commodityOrderItemDao.count(map);
	}
	
	@Override
	public int save(CommodityOrderItemDO commodityOrderItem){
		return commodityOrderItemDao.save(commodityOrderItem);
	}
	
	@Override
	public int update(CommodityOrderItemDO commodityOrderItem){
		return commodityOrderItemDao.update(commodityOrderItem);
	}
	
	@Override
	public int remove(String id){
		return commodityOrderItemDao.remove(id);
	}
	
	@Override
	public int batchRemove(String[] ids){
		return commodityOrderItemDao.batchRemove(ids);
	}
	
}
